package net.jcip.vehicles;


public class ImutablePoint {

	private final double x,y;

	public ImutablePoint(double x, double y) {
		super();
		this.x = x;
		this.y = y;
	}
	
	public ImutablePoint( ImutablePoint p){
		this(p.x,p.y);
	}

	public double getX() {
		return x;
	}

	public double getY() {
		return y;
	}
	
}
